package org.jerry.virtualoperator.vo;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;


/**
 * @Date 2020/11/24
 * @Created JerryZeng
 */

@Data
@JacksonXmlRootElement(localName = "response")
public class VsmsReport {

    final static DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");

    @JacksonXmlProperty(localName = "reCode")
    private String reCode = "success";
    @JacksonXmlProperty(localName = "reMsg")
    private String reMsg = "ok";
    @JacksonXmlProperty(localName = "respTime")
    private String respTime = formatter.format(LocalDateTime.now());
}
